realizing number ...how?? [closed]

Posted by gcc on Stack Overflow See other posts from Stack Overflow or by gcc
Published on 2010-05-07T17:28:14Z Indexed on 2010/05/07 17:38 UTC
Read the original article Hit count: 119

Filed under:
  i hold input like that  A is char pointer
A[0]=n
A[1]=j
A[2]=n
A[3]=d
.             there is one number in A[] 
              and every A[i] is important for me because what will i do in next step
              is determined by input in A[i] or A[n]

A[j]=$
.

A[i]=14(any number)
.
.


int func(int temp)
{
    if(temp=='n')
      ..do something then return 10;
    if(temp=='j')
        .. return 11;
    if(temp=='d')
        .. return 12;
   if(........)
    when temp find/realize number ,i wanna return 13;
    in if statement, what code  should i write 

}

how i can do

}

© Stack Overflow or respective owner

Related posts about c